<template>
<div class="tab">
  <div class="items clearfix">
        <router-link tag="div" class='tab-item' to='/'>
             首页
        </router-link>
        <router-link tag="div" class="tab-item" to="/recommand">
             推荐
        </router-link>
        <router-link tag="div" class="tab-item" to="/singer">
             歌手
        </router-link>
    </div>
</div>
</template>
<script>
    export default{
            
    }
</script>
<style scoped>
    .tab{
        height: 30px;
        text-align: center;
        line-height: 30px;
        padding-bottom: 3px;
        background-color: #1b1915db;
        width: 100%;
        border-bottom: 1px solid #850202;
    }
    .items{
        width: 600px;
        position: relative;
        margin: 0 auto;
    }
    .tab-item{
        float: left;
        cursor: pointer;
        width: 200px;
    }
    .router-link-exact-active{
            position: relative;
    border-bottom: 3px solid #850202;
    }
    .router-link-exact-active::after{
        content: '';
        width: 0;
        height: 0;
        border-width: 0 12px 12px;
        border-style: solid;
        border-color: transparent transparent #850202;
        position: absolute;
        bottom: -4px;
        left: calc(50% - 8px);
    }
</style>